import http from '../http/index.js'


// 主页列表
export const publicData = (page) => {
	if (!page ) page = 1
	return http.request({
		url : 'v3/gists/public',
		method : 'GET',
		data : {page : page}
	})
}

// 详情
export const getOne = (id) => {
	return http.request({
		url : 'v3/gists/public/' + id,
		method : 'GET',
	})
}
